

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>

</title><link href='./home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="./home/js/jquery-1.4.2.min.js"></script>
    <script src="./home/js/flexigrid.js"></script>
    <script src="./home/js/WdatePicker.js"></script>
    <script src="./home/js/jQuery.Ex.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='./home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=22ad6d43-2f60-446c-95dd-38b2e497b47b', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <script type="text/javascript">
        var navId = '22ad6d43-2f60-446c-95dd-38b2e497b47b';

        function changeinventory(type) {
            var productGuid = "";
            var count = 0;
            $("input[name='selectItem']:checkbox:checked").each(function () {
                productGuid = $(this).val();
                count += 1;
            });
            if (count == 0) {
                alert("请选择要操作的物品！");
                return false;
            }
            else if (count > 1) {
                alert("请选择一条数据！");
                return false;
            }

            if (productGuid != "") {
                window.parent.showDialog("物品出/入库", "../Modules/Asset/InOutStoreEdit.aspx?sc=btn&navId=22ad6d43-2f60-446c-95dd-38b2e497b47b&ProductGuid=" + productGuid + "&Type=" + type, "500px", "400px");
            }
            return false;
        }

        function changestorehouse() {
            var productGuid = "";
            var count = 0;
            $("input[name='selectItem']:checkbox:checked").each(function () {
                productGuid = $(this).val();
                count += 1;
            });
            if (count == 0) {
                alert("请选择要操作的物品！");
                return false;
            }
            else if (count > 1) {
                alert("请选择一条数据！");
                return false;
            }


            if (productGuid != "") {
                window.parent.showDialog("物品移库", "../Modules/Asset/StorehouseChangeEdit.aspx?sc=btn&navId=22ad6d43-2f60-446c-95dd-38b2e497b47b&productGuid=" + productGuid, "540px", "400px");
            }
            return false;
        }


        function InventoryChangeLog() {
            window.location.href = 'InventoryChangeLog.aspx?sc=btn&navId=22ad6d43-2f60-446c-95dd-38b2e497b47b';
        }

        function StoreHouseChangeLog() {
            window.location.href = 'StoreHouseChangeLog.aspx?sc=btn&navId=22ad6d43-2f60-446c-95dd-38b2e497b47b';
        }
        //预警设置
        function Alarmsetting() {
            window.parent.showDialog("预警设置", "../Modules/Asset/StorehouseAlarmsetting.aspx?sc=btn&navId=22ad6d43-2f60-446c-95dd-38b2e497b47b", "340px", "90px");
        }
        //文本框修改预警数量
        function SaveShowWarnCount(ProductGuid, obj) {
            var count = parseFloat($(obj).val());
            if (count.toString().toLocaleLowerCase() == 'NaN'.toLocaleLowerCase()) {
                alert("请输入正确的数量");
                $(obj).val(1);
                return;
            }
            if (count < 0) {
                alert("请输入正确的数量");
                $(obj).val(1);
                return;
            }
            if (ProductGuid.length != undefined) {
                $.AjaxETM("OA_ShowWarnCount", { "ProductGuid": ProductGuid, "WarnCount": $(obj).val() }, function (result) {
                    //alert(result);
                }, true, "text");
            } else {
                alert("预警数量修改失败！");
            }
        }
    </script>

    <script type="text/javascript">
        function showProductInfo(productGuid, navId) {
            window.parent.showDialog("物品查看", "../Modules/Asset/ProductInfo.aspx?navId=" + navId + "&ProductGuid=" + productGuid, "800px", "450px");
        };

    </script>

</head>
<body>
    <form method="post" action="StorehouseChange.aspx?navId=22ad6d43-2f60-446c-95dd-38b2e497b47b" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTI2Mzc0MDQwOQ9kFgICAw9kFgICAg8QZBAVBAnor7fpgInmi6kNfOKAlOWbvuS5puexuwp84oCU6JSs6I+cDXzigJTmloflhbfnsbsVBCQwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAkMDMxNTE0ZTMtNmY2MC00ZjgxLTk0NGEtNWEyMTIwMTNmOGRkJGQ4ZGViMWY1LWY1OTUtNDhjYi1hODRmLTViZjUwYmZkZTYzYSRhMGVmOWYyNC00ZWFiLTQxMDgtYmFkZC1mOWUyNjkyN2EwMWIUKwMEZ2dnZ2RkZNNWTzjULeux5HiYotLIn7dAVQfOaNAeBdqWKIAIPtcg" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="14ECA9A2" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAudGpcd6gceggtuOwiJITQa4ccGDk8cSgecUAAd4hqIkqSCAnAV5OjnHJGfZg7qXAasgiQS4/3smia0V2O9l7T3RU578NELg6+lrIb9HTPmFfY5aoy2mVe+1rrnzpGGagbpD7TjiGErzQunMmxE8ADkXMd9rqsJU3gfkTc53YFOVBmQsTgjMSqq7e9EyFvqyOwcn5ECn0+MyLwjUQzSjhHEWJFOSjtpe100N9cAVWlAM2RhB50pi7keulvP3ZqEknLTrdLUacvdoCHudYX7V/dI" />
</div>
         <script src="./home/js/jQuery.etmRightLinks.js"></script><script src="./home/js/jQuery.etmTabs.js"></script><script type="text/javascript">$(function () {$("#rightLinks").etmTabs({item: [{ Text: "库存管理", Url: "../../Modules/Asset/StorehouseChange.aspx?navId=22ad6d43-2f60-446c-95dd-38b2e497b47b&pageid=e8a06909-f4f6-4c0e-a1eb-2ec9c73a99da", Selected: true },{ Text: "库存变动记录", Url: "../../Modules/Asset/InventoryChangeLog.aspx?navId=22ad6d43-2f60-446c-95dd-38b2e497b47b&pageid=30dfe33d-0441-4dc5-bde4-a8ee9f310c41" },{ Text: "移库记录", Url: "../../Modules/Asset/StoreHouseChangeLog.aspx?navId=22ad6d43-2f60-446c-95dd-38b2e497b47b&pageid=930d72e7-1e68-4145-b06c-b2a95a89379f" }]});});</script><div id='rightLinks' style='position: absolute; top: 2px; right: 10px;'></div>
        <table class="search">
            <tr>
                <td class="textAlignRight" style="width: 78px">物品名称：
                </td>
                <td class="borderRight" style="width: 136px;">
                    <input name="tbName" type="text" id="tbName" class="int" style="width:115px;" />
                </td>
                <td class="textAlignRight" style="width: 78px">物品分类：
                </td>
                <td class="borderRight" style="width: 136px;">
                    <select name="ddlCategory" id="ddlCategory" class="int" style="width:120px;">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="031514e3-6f60-4f81-944a-5a212013f8dd">|—图书类</option>
	<option value="d8deb1f5-f595-48cb-a84f-5bf50bfde63a">|—蔬菜</option>
	<option value="a0ef9f24-4eab-4108-badd-f9e26927a01b">|—文具类</option>

</select>
                </td>
                <td class="textAlignRight" style="width: 78px;">物品编码：
                </td>
                <td class="borderRight" style="width: 136px;">
                    <input name="tbCode" type="text" id="tbCode" class="int" style="width:115px;" />
                </td>
                <td style="padding-left: 20px;">
                    <input type="button" class="button" value="搜 索" id="btnSearch" />
                </td>
            </tr>
          
        </table>


        <table id='Test' style='display:none;'></table><input type='text' style='display:none;' id='etmparams' name='etmparams' value='[{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"","Name":"ProductGuid","Width":35,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":true,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"ProductShow","Display":"物品编码","Name":"ProductCode,ProductGuid,22ad6d43-2f60-446c-95dd-38b2e497b47b","Width":150,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"物品名称","Name":"ProductName","Width":135,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"物品分类","Name":"CategoryName","Width":100,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"ShowStoreHouseName","Display":"仓库：库存","Name":"ProductGuid","Width":200,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"UnitNameAct","Display":"单位","Name":"UnitName","Width":60,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"ShowWarnCount","Display":"预警数量","Name":"ProductGuid,WarnCount","Width":458,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false}]'/><input type='text' style='display:none;' id='etmUrlparams' name='etmUrlparams' value='[{"Key":"navId","Value":"22ad6d43-2f60-446c-95dd-38b2e497b47b"}]'/><input type='text' style='display:none;' id='etmPageUrl' name='etmPageUrl' value='http://vip.yj.etmcn.com/Modules/Asset/StorehouseChange.aspx?navId=22ad6d43-2f60-446c-95dd-38b2e497b47b'/><input type='text' style='display:none;' id='pagename' name='pagename' value='StoreHouseChange'/><input type='text' style='display:none;' id='pageamethod' name='pageamethod' value='StoreHouseChangeStoreHouseChange'/><script type='text/javascript'> var etmFormId='form1';function fixIE9() {if ($.browser.msie && $.browser.version == 9) {$('#form1 select').each(function () {var name = $(this).attr('name');if (name != undefined && name.length > 0) {var value = $(this).val();if (value == null) {value = $(this).find('option:first').attr('value');$(this).val(value);}}});}}function RefreshGrid(){ $('#Test').flexOptions().flexReload(); };function addFormData() {fixIE9(); var dt = $('#form1').serializeArray(); $('#Test').flexOptions({ params: dt }); return true; }$(function () { $('#btnSearch').click(function () { $('#Test').flexOptions({ newp: 1 }).flexReload(); return false; }); });$('#Test').flexigrid({url: './data/zcKcgl.json',sortname: 'ProductGuid',sortorder: 'asc',usepager: true,useRp: true,rpOptions: [20,30,50,100,200],rp: 30,colModel: [{ display: '', name: 'ProductGuid',etmname:'ProductGuid', width: 35, sortable: false, align: 'Center', checkbox: true ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '物品编码', name: 'ProductCode,ProductGuid,22ad6d43-2f60-446c-95dd-38b2e497b47b',etmname:'ProductShow', width: 150, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '物品名称', name: 'ProductName',etmname:'ProductName', width: 135, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '物品分类', name: 'CategoryName',etmname:'CategoryName', width: 100, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '仓库：库存', name: 'ProductGuid',etmname:'ShowStoreHouseName', width: 200, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '单位', name: 'UnitName',etmname:'UnitNameAct', width: 60, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '预警数量', name: 'ProductGuid,WarnCount',etmname:'ShowWarnCount', width: 458, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false}],width: $(window).width(),height: $(window).height()-255+60,onSubmit: addFormData});</script>
        <div style="margin-left: 20px;"> <input type="submit" name="btnIn" value="入库" onclick="return changeinventory(&#39;in&#39;);" id="btnIn" class="button" />
                        &nbsp;&nbsp;
            <input type="submit" name="btnOut" value="出库" onclick="return changeinventory(&#39;out&#39;);" id="btnOut" class="button" />
                        &nbsp;&nbsp;
             <input type="submit" name="btnStoreHouse" value="移库" onclick="return changestorehouse();" id="btnStoreHouse" class="button" />
                        &nbsp;&nbsp;
                        <input type="submit" name="btnAlarmsetting" value="预警设置" onclick="return Alarmsetting();" id="btnAlarmsetting" class="button" /></div>
    </form>
</body>
</html>
